package com.limingfeiyu.platform.management.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.limingfeiyu.common.web.PageTable;
import com.limingfeiyu.platform.management.entity.SysMenu;
import com.limingfeiyu.platform.management.mapper.SysMenuMapper;
import com.limingfeiyu.platform.management.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * <p>
 * 系统菜单 服务实现类
 * </p>
 *
 * @author 黎铭飞羽
 * @since 2024-03-02
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

	@Override
    public Page<SysMenu> pageList(PageTable<SysMenu> pageTable) {
        QueryWrapper<SysMenu> userQw = new QueryWrapper<>();
        if (pageTable.getParam() != null) {
            userQw.lambda() ;
        }
        Page<SysMenu> page = super.page(pageTable.getPage(), userQw);
        return page;
    }
}
